package com.shushan.pages.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: SubjectSyncExerciseBean
 * @Desciption: //同步练习详情页科目bean
 * @author: zhangshihao
 * @date: 2018-04-18
 */
public class SubjectSyncExerciseBean extends NetBaseBean {

    public int outline_id;
    public String outline_detail_name;
    public String outline_cover;
    public int outline_detail_id;
    public String press_name;
    public String reward;
    public int practiceType;
    public int state;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        outline_id = jsonObject.optInt("outline_id",0);
        outline_detail_name = jsonObject.optString("outline_detail_name","");
        outline_cover = jsonObject.optString("outline_cover","");
        outline_detail_id = jsonObject.optInt("outline_detail_id",0);
        press_name = jsonObject.optString("press_name","");
        reward = jsonObject.optString("reward","");
        state = jsonObject.optInt("state",1);
    }
}
